#pragma once

struct dl_rq
{
    struct rb_root_cached root;

    unsigned int dl_nr_running;
    bool overloaded;
    /*
     * Deadline values of the currently executing and the
     * earliest ready task on this rq. Caching these facilitates
     * the decision whether or not a ready but not running task
     * should migrate somewhere else.
     */
    struct
    {
        u64 curr;
        u64 next;
    } earliest_dl;

    u64 max_bw;
    u64 extra_bw;
    u64 running_bw;
    u64 this_bw;
    u64 bw_ratio;
};
